﻿<!DOCTYPE html>
<html>
<head>
    <title></title>
    <meta charset="utf-8" />
    <script type="text/javascript">
        (function () {
            function fun1() {
                alert('a');
            }
            //fun1();
        })() 

    </script>
</head>
<body>
    body
    <input onclick="fun1()" />
</body>
</html>
